package sy.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * SysAccount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_account", catalog = "ssh")
public class SysAccount implements java.io.Serializable {

	// Fields

	private String id;
	private String name;
	private String password;
	private String token;
	private String weChat;
	private Date loginTime;
	
	

	// Constructors

	/** default constructor */
	public SysAccount() {
	}

	/** full constructor */
	public SysAccount(String id, String name, String password, String token, String weChat, Date loginTime) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.token = token;
		this.weChat = weChat;
		this.loginTime = loginTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.string")
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 64)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "password")
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	@Column(name = "token")
	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
	@Column(name = "weChat")
	public String getWeChat() {
		return weChat;
	}

	public void setWeChat(String weChat) {
		this.weChat = weChat;
	}
	@Column(name = "loginTime")
	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	


}